package com.fire.eyes.validation;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * @ClassName: SiteIdDTO
 * @Description: TODO
 * @Author raoyuxing
 * @Date 2019/1/10 10:14
 */
@Getter
@Setter
public class SiteIdDTO extends TokenDTO {

    @NotBlank(message = "siteid不能为空")
    private String siteid;

    @NotBlank(groups = Isassigned.class ,message = "isassigned不能为空")
    private String isassigned;

    public interface Isassigned {}

    public String getSiteid() {
        return siteid;
    }

    public void setSiteid(String siteid) {
        this.siteid = siteid;
    }

    @Override
    public String toString() {
        return "SiteIdDTO{" +
                "siteid='" + siteid + '\'' +
                '}';
    }
}
